﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SanGiaoDich.aspx.cs" Inherits="BDS3M.SanGiaoDich" %>

<%@ Register TagPrefix="ucc" TagName="contenttop" Src="~/controls/ContentTop.ascx" %>
<%@ Reference Control="~/controls/ContentTop.ascx" %>
<%@ Register TagPrefix="ucc" TagName="footer" Src="~/controls/Footer.ascx" %>
<%@ Reference Control="~/controls/Footer.ascx" %>
<%@ Register TagPrefix="ucc" TagName="header" Src="~/controls/Header.ascx" %>
<%@ Reference Control="~/controls/Header.ascx" %>
<%@ Register TagPrefix="ucc" TagName="hotrotructuyen" Src="~/controls/HoTroTrucTuyen.ascx" %>
<%@ Reference Control="~/controls/HoTroTrucTuyen.ascx" %>
<%@ Register TagPrefix="ucc" TagName="menutop" Src="~/controls/MenuTop.ascx" %>
<%@ Reference Control="~/controls/MenuTop.ascx" %>
<%@ Register TagPrefix="ucc" TagName="phongthuy" Src="~/controls/PhongThuy.ascx" %>
<%@ Reference Control="~/controls/PhongThuy.ascx" %>
<%@ Register TagPrefix="ucc" TagName="slidebottom" Src="~/controls/SlideBottom.ascx" %>
<%@ Reference Control="~/controls/SlideBottom.ascx" %>
<%@ Register TagPrefix="ucc" TagName="slidelistnews" Src="~/controls/SlideListNews.ascx" %>
<%@ Reference Control="~/controls/SlideListNews.ascx" %>
<%@ Register TagPrefix="ucc" TagName="slidetop" Src="~/controls/SlideTop.ascx" %>
<%@ Reference Control="~/controls/SlideTop.ascx" %>
<%@ Register TagPrefix="ucc" TagName="thuvienanh" Src="~/controls/ThuVienAnh.ascx" %>
<%@ Reference Control="~/controls/ThuVienAnh.ascx" %>
<%@ Register TagPrefix="ucc" TagName="timkiemnangcao" Src="~/controls/TimKiemNangCao.ascx" %>
<%@ Reference Control="~/controls/TimKiemNangCao.ascx" %>
<%@ Register TagPrefix="ucc" TagName="tintucsukien" Src="~/controls/TinTucSuKien.ascx" %>
<%@ Reference Control="~/controls/TinTucSuKien.ascx" %>
<%@ Register TagPrefix="ucc" TagName="tuyendung" Src="~/controls/TuyenDung.ascx" %>
<%@ Reference Control="~/controls/TuyenDung.ascx" %>
<%@ Register TagPrefix="ucc" TagName="vanbanphapluat" Src="~/controls/VanBanPhapLuat.ascx" %>
<%@ Reference Control="~/controls/VanBanPhapLuat.ascx" %>
<%@ Register TagPrefix="ucc" TagName="video" Src="~/controls/Video.ascx" %>
<%@ Reference Control="~/controls/Video.ascx" %>
<%@ Register TagPrefix="ucc" TagName="phantrangsangiaodich" Src="~/controls/PhanTrangSanGiaoDich.ascx" %>
<%@ Reference Control="~/controls/PhanTrangSanGiaoDich.ascx" %>
<%@ Register TagPrefix="ucc" TagName="listcontentsangiaodich" Src="~/controls/ListContentSanGiaoDich.ascx" %>
<%@ Reference Control="~/controls/ListContentSanGiaoDich.ascx" %>
<%@ Register TagPrefix="ucc" TagName="head" Src="~/controls/Head.ascx" %>
<%@ Reference Control="~/controls/Head.ascx" %>
<%@ Register TagPrefix="ucc" TagName="timkiemtuongdoi" Src="~/controls/TimKiemTuongDoi.ascx" %>
<%@ Reference Control="~/controls/TimKiemTuongDoi.ascx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<!------------------HEAD------------------->
<ucc:head runat="server" ID="head" />

<body>
    <form id="Form1" runat="server">
        <!-----------------HEADER--------------->
        <ucc:header runat="server" ID="header" />

        <!-- STOP HEADER -->

        <!----------------MENU TOP---------------->
        <ucc:menutop runat="server" ID="menutop" />

        <div id="content">

            <!-----------------CONTENT TOP------------------>
            <ucc:contenttop runat="server" ID="contenttop" />

            <!-- STOP CONTENT TOP -->

            <div id="center">
                <div id="sitebar">

                    <!------------TIM KIEM NANG CAO--------------->
                    <ucc:timkiemnangcao runat="server" ID="timkiemnangcao" />

                    <!------------TIM KIEM TUONG DOI-------------->
                    <ucc:timkiemtuongdoi runat="server" ID="timkiemtuongdoi" />

                    <!-- STOP SITEBAR ITEM -->

                    <!------------TIN TUC SU KIEN----------------->
                    <ucc:tintucsukien runat="server" ID="tintucsukien" />

                    <!-- STOP SITEBAR ITEM -->

                    <!----------------THU VIEN ANH--------------------->
                    <ucc:thuvienanh runat="server" ID="thuvienanh" />

                    <!-- STOP SITEBAR ITEM -->

                    <!-------------------VIDEO----------------->
                    <ucc:video runat="server" ID="video" />

                    <!-- STOP SITEBAR ITEM -->

                    <!---------------HO TRO TRUC TUYEN----------------->
                    <ucc:hotrotructuyen runat="server" ID="hotrotructuyen" />

                    <!-- STOP SITEBAR ITEM -->

                    <!---------------VAN BAN PHAP LUAT--------------->
                    <ucc:vanbanphapluat runat="server" ID="vanbanphapluat" />

                    <!-- STOP SITEBAR ITEM -->

                    <!---------------PHONG THUY----------------->
                    <ucc:phongthuy runat="server" ID="phongthuy" />

                    <!-- STOP SITEBAR ITEM -->

                    <!--------------TUYEN DUNG------------------->
                    <ucc:tuyendung runat="server" ID="tuyendung" />

                    <!-- STOP SITEBAR ITEM -->
                </div>
                <!-- STOP SITEBAR -->
                <div id="center_right">
                    <h3 class="center_title"><span>Sàn giao dịch >> <%=name %></span></h3>
                    <div id="tab_index">
                            <% string[] listurl = Request.Url.AbsoluteUri.Split('/');
                    string url = listurl[listurl.Length - 1];
                    string tab = "";
                    if (listurl.Length > 2)
                        tab = listurl[listurl.Length - 2];

                    
                     %>
                        <ul class="tabs-nav">
                            <% if(Request.QueryString["content"] != null ){ %>

                             <li class="<%=css[1] %>"><a href="/content/<%=Request.QueryString["content"].ToString()  %>/1/reals">Sàn giao dịch</a></li>

                            <li class="<%=css[2] %>"><a href="/content/<%=Request.QueryString["content"].ToString()  %>/2/reals" onclick="changeType(&#39;2&#39;)">Cần bán</a></li>

                            <li class="<%=css[3] %>"><a href="/content/<%=Request.QueryString["content"].ToString()  %>/3/reals" onclick="changeType(&#39;1&#39;)">Cần mua</a></li>

                            <li class="<%=css[4] %>"><a href="/content/<%=Request.QueryString["content"].ToString()  %>/4/reals" onclick="changeType(&#39;3&#39;)">Cho thuê</a></li>

                            <li class="<%=css[5] %>"><a href="/content/<%=Request.QueryString["content"].ToString()  %>/5/reals" onclick="changeType(&#39;4&#39;)">Cần thuê</a></li>

                            
                            
                            <% }
                               else if (tab!="search")
                               { %>

                            <li class="<%=css[1] %>"><a href="/category/<%=LIB.Converter.convertLink(name) %>-<%=catid %>-1/reals">Sàn giao dịch</a></li>

                            <li class="<%=css[2] %>"><a href="/category/<%=LIB.Converter.convertLink(name) %>-<%=catid %>-2/reals" onclick="changeType(&#39;2&#39;)">Cần bán</a></li>

                            <li class="<%=css[3] %>"><a href="/category/<%=LIB.Converter.convertLink(name) %>-<%=catid %>-3/reals" onclick="changeType(&#39;1&#39;)">Cần mua</a></li>

                            <li class="<%=css[4] %>"><a href="/category/<%=LIB.Converter.convertLink(name) %>-<%=catid %>-4/reals" onclick="changeType(&#39;3&#39;)">Cho thuê</a></li>

                            <li class="<%=css[5] %>"><a href="/category/<%=LIB.Converter.convertLink(name) %>-<%=catid %>-5/reals" onclick="changeType(&#39;4&#39;)">Cần thuê</a></li>
                           
                             <% } else { %>

                              <li class="<%=css[1] %>"><a href="/advance/<%=LIB.Converter.convertLink(name) %>-1/search/reals">Sàn giao dịch</a></li>

                            <li class="<%=css[2] %>"><a href="/advance/<%=LIB.Converter.convertLink(name) %>-2/search/reals" onclick="changeType(&#39;2&#39;)">Cần bán</a></li>

                            <li class="<%=css[3] %>"><a href="/advance/<%=LIB.Converter.convertLink(name) %>-3/search/reals" onclick="changeType(&#39;1&#39;)">Cần mua</a></li>

                            <li class="<%=css[4] %>"><a href="/advance/<%=LIB.Converter.convertLink(name) %>-4/search/reals" onclick="changeType(&#39;3&#39;)">Cho thuê</a></li>

                            <li class="<%=css[5] %>"><a href="/advance/<%=LIB.Converter.convertLink(name) %>-5/search/reals" onclick="changeType(&#39;4&#39;)">Cần thuê</a></li>

                               <% } %>
                            <li><a href="/tuvan">Tư vấn</a></li>

                            <li><a href="/huongdandangtin">hướng dẫn đăng tin</a></li>
                        </ul>

                        <div id="SANGIAODICH" class="tabs-container">

                            <!-------------------PHAN TRANG SAN GIAO DICH------------------>
                            <ucc:phantrangsangiaodich runat="server" ID="phantrangsangiaodich" />

                            <!----------------------LIST CONTENT SAN GIAO DICH----------------------->
                            <ucc:listcontentsangiaodich runat="server" ID="listcontentsangiaodich" />

                        </div>

                        <!-- STOP SANGIAODICH -->
                    </div>
                    <!-- TAB INDEX -->
                </div>
                <script>
                    $('#chondiadiem').change(function () {
                        if ($(this).val()) vsf.jSelect($(this).val(), 'searchRangeAreas');
                        $('.search_btn').click();
                        return false;
                    })
                </script>
                <!-- STOP CENTER_RIGHT -->
                <div class="clear"></div>

                <!------------------SLIDE BOTTOM------------------>
                <ucc:slidebottom runat="server" ID="slidebottom" />

                <!-- STOP SLIDE -->
            </div>

            <!-- STOP CENTER -->
        </div>

        <!-------------------FOOTER---------------->
        <ucc:footer runat="server" ID="footer" />
    </form>
</body>
</html>
